<?=modules::run('header/frontback')?>
<?=modules::run('navbar/frontback')?>
<?=modules::run('categories/frontback')?>
<!-- start header div -->
	<div style="display: none;" id="header_sub">
		<!-- start logo  div -->
		<div id="logo">
			<a href="<?=$this->public_model->getNonSSLURL()?>" style="margin-left:5px;">
            <img alt="Game4Fun" src="<?=TEMPLATE_IMAGE_PATH?>/logo1.jpg" />
            </a>
		</div>
		<!-- end logo  div -->

		<!-- start mini menu  div 
		<div id="Mini_menu">
			<ul>
				<?php
			    if(empty($this->session->userdata['is_logged_in']) || $this->session->userdata['is_logged_in']==false){	    		
	    		?>
					<li><a class="toplink" title="" href="#" onclick="showLoginForm()">Login</a></li>
					<li><a class="toplink" title="" href="<?=base_url()?>login/playerSignup">Register</a></li>
					<li class="toplink"><a class="toplink" href="<?=base_url()?>pay/moneyExchange"><img src="<?=TEMPLATE_IMAGE_PATH?>/coin.png" width="10px"/>&nbsp;<span id="spviewcart" name="spviewcart">Point Exchange</span></a></li>
				<?php
				} else {
				?>
					<li>Hello <a href="/account/"><?php echo $this->session->userdata['fullname'] ?></a> (<span style="font-weight: bold;color:#0A4874"><?=modules::run('game/getCurrentBalance')?></span> points) </li>
					
					<?if(modules::run('login/is_user_logged_in')):?>
						<li class="toplink"><a class="toplink" href="<?=base_url()?>pay/moneyExchange"><img src="<?=TEMPLATE_IMAGE_PATH?>/coin.png" width="10px"/>&nbsp;<span id="spviewcart" name="spviewcart">Point Exchange</span></a></li>
                        <li class="toplink"><a class="toplink" href="<?=base_url()?>game/my_games">My games (<?=modules::run('game/getCount_GamePlayer')?>)</a></li>
					<?elseif(modules::run('login/is_seller_logged_in')):?>
						<li class="toplink"><a class="toplink" href="<?=base_url()?>cart"><img src="<?=TEMPLATE_IMAGE_PATH?>/coin.png" width="10px"/>&nbsp;<span id="spviewcart" name="spviewcart">My Account</span></a></li>
					<?endif?>
					<li><a class="lastLi" title="" href="<?=$this->public_model->getNonSSLURL()?>login/logout">Logout</a></li>	
				<?php
				}
				?>
			    
				
								
				
			</ul>			
		</div>
		<!-- end mini menu  div -->
		<?= $menu ?>
		<!-- end main menu  div -->
		<div class="fl_clear"></div>
		
		<!-- end search -->
	</div>
	
	
	<input type="hidden" id="urldefault" name="urldefault" value="<?=base_url()?>">
	<script language="javascript">
		var URL_DEFAULT = '<?=base_url()?>';
	</script>
	
<!-- end header div -->